package com.procurement.material.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.api.domain.PcmSupplier;
import com.ruoyi.system.api.domain.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 物料供应商对象 pcm_material_supplier
 * 
 * @author liyang
 * @date 2023-11-28
 */
public class PcmMaterialSupplier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物料资质管理ID */
    private Long materialQualificationID;

    /** 供应商ID2 */
    @Excel(name = "供应商ID2")
    private String supplierID;

    /** 供应商全称 */
    @Excel(name = "供应商全称")
    private String supplierFullName;

    /** 资质证书 */
    @Excel(name = "资质证书")
    private String qualificationCertificate;

    /** 资质到期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "资质到期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date qualificationExpiryDate;

    /** 提交人 */
    @Excel(name = "提交人")
    private Long submitter;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submissionTime;


    /**提交人表关联**/
    private SysUser sysUser;

    /**供应商表关联**/
    private PcmSupplier pcmSupplier;

    public PcmSupplier getPcmSupplier() {
        return pcmSupplier;
    }

    public void setPcmSupplier(PcmSupplier pcmSupplier) {
        this.pcmSupplier = pcmSupplier;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public void setMaterialQualificationID(Long materialQualificationID)
    {
        this.materialQualificationID = materialQualificationID;
    }

    public Long getMaterialQualificationID() 
    {
        return materialQualificationID;
    }
    public void setSupplierID(String supplierID)
    {
        this.supplierID = supplierID;
    }

    public String getSupplierID()
    {
        return supplierID;
    }
    public void setSupplierFullName(String supplierFullName) 
    {
        this.supplierFullName = supplierFullName;
    }

    public String getSupplierFullName() 
    {
        return supplierFullName;
    }
    public void setQualificationCertificate(String qualificationCertificate) 
    {
        this.qualificationCertificate = qualificationCertificate;
    }

    public String getQualificationCertificate() 
    {
        return qualificationCertificate;
    }
    public void setQualificationExpiryDate(Date qualificationExpiryDate) 
    {
        this.qualificationExpiryDate = qualificationExpiryDate;
    }

    public Date getQualificationExpiryDate() 
    {
        return qualificationExpiryDate;
    }
    public void setSubmitter(Long submitter)
    {
        this.submitter = submitter;
    }

    public Long getSubmitter()
    {
        return submitter;
    }
    public void setSubmissionTime(Date submissionTime) 
    {
        this.submissionTime = submissionTime;
    }

    public Date getSubmissionTime() 
    {
        return submissionTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("materialQualificationID", getMaterialQualificationID())
            .append("supplierID", getSupplierID())
            .append("supplierFullName", getSupplierFullName())
            .append("qualificationCertificate", getQualificationCertificate())
            .append("qualificationExpiryDate", getQualificationExpiryDate())
            .append("submitter", getSubmitter())
            .append("submissionTime", getSubmissionTime())
            .append("updateTime", getUpdateTime())
            .append("sysUser",getSysUser())
            .append("pcmSupplier",getPcmSupplier())
            .toString();
    }
}
